package com.aaa.service;

import com.aaa.entity.Role;
import com.aaa.entity.TreeMenu;

import java.util.List;
import java.util.Map;

public interface RoleService {

    List<Map<String,Object>> getAllRole();

    Map<String,Object> findRole(Integer pageNumber, Integer pageSize,String roleName);

    int findRoleCount(String roleName);

    int updateRoleById(Role role);

    int addRole(Role role);

    int deleteStaffByRoleId(int roleId);

    List<TreeMenu>  getMenuList(int roleId);

    int updateMenuList(Integer roleId, String resourceIds);

}
